import { createBrowserRouter } from 'react-router';
import App from './app';
import { HomeView } from './page/home';
import { MessageView } from './page/message';
import { MeView } from './page/me';

export const router = createBrowserRouter([
  {
    path: '/',
    Component: App,
    children: [
      { path: 'home', index: true, Component: HomeView  },
      {
        path: 'message',
        Component: MessageView
      },
      {
        path: 'me',
        Component: MeView
      }
    ]
  }
]);
